package cn.wch.meshlib.ota;

import androidx.annotation.NonNull;

import cn.wch.meshlib.frame.ack.AckFrame;
import cn.wch.meshlib.frame.ack.AckType;

/**
 * 图像信息
 */
public class ImageInfo {
    /**芯片类型*/
    private ChipType chipType;
    /**块大小*/
    private int blockSize=0;
    /**图像大小*/
    private long imageSize=0;
    /**实例化*/
    public ImageInfo() {
    }

    /**
     * 实例化
     * @param chipType 芯片类型
     * @param blockSize 块大小
     * @param imageSize 图像大小
     */
    public ImageInfo(ChipType chipType, int blockSize, int imageSize) {
        this.chipType = chipType;
        this.blockSize = blockSize;
        this.imageSize = imageSize;
    }

    public void setChipType(ChipType chipType) {
        this.chipType = chipType;
    }

    public void setBlockSize(int blockSize) {
        this.blockSize = blockSize;
    }

    public void setImageSize(long imageSize) {
        this.imageSize = imageSize;
    }

    public ChipType getChipType() {
        return chipType;
    }

    public int getBlockSize() {
        return blockSize;
    }

    public long getImageSize() {
        return imageSize;
    }

    @NonNull
    @Override
    public String toString() {
        return "imageSize-->"+imageSize
                +";blockSize-->"+blockSize+";chipType-->"+chipType.toString();
    }
}
